from langchain_core.tools import Tool, tool


def fun_tool001(a: int) -> int:
    return a + 4


tool001 = Tool.from_function(func=fun_tool001, name="fun_tool001", description="add 4 to input")
print(tool001.invoke({"a": 3}))
